﻿// =================================================================== 
// 项目说明
//====================================================================
// SunCity@Copy Right 2006-2008
// 文件： Contents.cs
// 项目名称：
// 创建时间：2015/3/18
// 负责人：
// ===================================================================
using System;
namespace EMS20.Entity
{
	/// <summary>
	///Contents数据实体
	/// </summary>
	[Serializable]
	public class ContentsEntity
	{
		#region 变量定义
		///<summary>
		///
		///</summary>
		private int _cnt_id;
		///<summary>
		///
		///</summary>
		private string _cnt_title = String.Empty;
		///<summary>
		///
		///</summary>
		private int _category_id;
		///<summary>
		///
		///</summary>
		private string _cnt_content = String.Empty;
		///<summary>
		///
		///</summary>
		private string _cnt_linkurl = String.Empty;
		///<summary>
		///
		///</summary>
		private string _cnt_imgurl = String.Empty;
		///<summary>
		///
		///</summary>
		private int _user_id;
		///<summary>
		///
		///</summary>
		private byte _cnt_is_lock;
		///<summary>
		///
		///</summary>
		private DateTime _cnt_add_time = Convert.ToDateTime("1900 - 1 - 1");
		///<summary>
		///
		///</summary>
		private string _cnt_exp1 = String.Empty;
		///<summary>
		///
		///</summary>
		private int _cnt_exp2;
		#endregion
		
		#region 构造函数
		///<summary>
		///
		///</summary>
		public ContentsEntity()
		{
		}
		///<summary>
		///
		///</summary>
		public ContentsEntity
		(
			int cnt_id,
			string cnt_title,
			int category_id,
			string cnt_content,
			string cnt_linkurl,
			string cnt_imgurl,
			int user_id,
			byte cnt_is_lock,
			DateTime cnt_add_time,
			string cnt_exp1,
			int cnt_exp2
		)
		{
			_cnt_id       = cnt_id;
			_cnt_title    = cnt_title;
			_category_id  = category_id;
			_cnt_content  = cnt_content;
			_cnt_linkurl  = cnt_linkurl;
			_cnt_imgurl   = cnt_imgurl;
			_user_id      = user_id;
			_cnt_is_lock  = cnt_is_lock;
			_cnt_add_time = cnt_add_time;
			_cnt_exp1     = cnt_exp1;
			_cnt_exp2     = cnt_exp2;
			
		}
		#endregion
		
		#region 公共属性
		
		///<summary>
		///
		///</summary>
		public int cnt_id
		{
			get {return _cnt_id;}
			set {_cnt_id = value;}
		}

		///<summary>
		///
		///</summary>
		public string cnt_title
		{
			get {return _cnt_title;}
			set {_cnt_title = value;}
		}

		///<summary>
		///
		///</summary>
		public int category_id
		{
			get {return _category_id;}
			set {_category_id = value;}
		}

		///<summary>
		///
		///</summary>
		public string cnt_content
		{
			get {return _cnt_content;}
			set {_cnt_content = value;}
		}

		///<summary>
		///
		///</summary>
		public string cnt_linkurl
		{
			get {return _cnt_linkurl;}
			set {_cnt_linkurl = value;}
		}

		///<summary>
		///
		///</summary>
		public string cnt_imgurl
		{
			get {return _cnt_imgurl;}
			set {_cnt_imgurl = value;}
		}

		///<summary>
		///
		///</summary>
		public int user_id
		{
			get {return _user_id;}
			set {_user_id = value;}
		}

		///<summary>
		///
		///</summary>
		public byte cnt_is_lock
		{
			get {return _cnt_is_lock;}
			set {_cnt_is_lock = value;}
		}

		///<summary>
		///
		///</summary>
		public DateTime cnt_add_time
		{
			get {return _cnt_add_time;}
			set {_cnt_add_time = value;}
		}

		///<summary>
		///
		///</summary>
		public string cnt_exp1
		{
			get {return _cnt_exp1;}
			set {_cnt_exp1 = value;}
		}

		///<summary>
		///
		///</summary>
		public int cnt_exp2
		{
			get {return _cnt_exp2;}
			set {_cnt_exp2 = value;}
		}
	
		#endregion
		
	}
}
